package zyz.framework.util;

import java.io.InputStream;
import java.util.Properties;

public class TableNameUtil {
	public static Properties properties = null;

	static {
		try {
			InputStream inputStream = TableNameUtil.class.getClassLoader().getResourceAsStream("tableName.properties");

			properties = new Properties();
			properties.load(inputStream);
		} catch(Exception e) {}
	}

	/**
	 * 从system.properties中获取相应配置项的值
	 * @param key 相应配置项的key
	 * @return
	 */
	public static String getProperty(String key) {
		return properties.getProperty(key) == null ? "" : properties.get(key).toString();
	}
}